import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";

//页面进来左侧显示的数据
export function listleftInfo(query) {
    return request({
        url: '/system/log/list',
        method: 'get',
        params: query
    })
}

//点击难易度配置 出现的百分比数据
export function difficultyInfo(query) {
    return request({
        url: '/system/difficulty/list',
        method: 'get',
        params: query
    })
}
//页面进来右侧边显示的数据
export function listrightInfo(query) {
    return request({
        url: '/system/main/list',
        method: 'get',
        params: query
    })
}

// 上传导入模板
export function importTemplate() {
    return request({
        url: '/system/data/importData',
        method: 'post'
    })
}

// 下载模板
export function downloadTemplate(query) {
    return request({
        url: '/system/data/importTemplate',
        method: 'get',
        params: query
    })
}

// 导入记录数
export function importInfo(query) {
    return request({
        url: '/system/log/list',
        method: 'get',
        params: query
    })
}

//作答结果导入日志
export function resultsInfo(query) {
    return request({
        url: '/system/main/list',
        method: 'get',
        params: query
    })
}

//难易度调整日志
export function difficultInfo(query) {
    return request({
        url: '/system/difficulty/list',
        method: 'get',
        params: query
    })
}

//难易度配置  难易度修改 put请求
export function modifyInfo(data) {
    return request({
        url: '/system/difficulty',
        method: 'put',
        data: data
    })
}

//调整试题难易度
export function adjustDifficulty(query) {
    return request({
        url: '/system/questions/edit',
        method: 'put',
        params: query
    })
}

//试题调整详情导出
export function questionsAdjust(query) {
    return request({
        url: '/system/detail/export',
        method: 'get',
        params: query
    })
}